package com.alone.openai.api.core.param;

import com.alone.openai.api.core.ApiConstant;
import lombok.Data;

/**
 * @author Alone
 * @date 2023/3/23 4:55 下午
 */
@Data
public class AudioTranslationParam {

    /**
     * Required
     * <p>
     * The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
     * <p>
     * 以以下格式之一转录的音频文件: mp3，mp4，mpeg，mpga，m4a，wav或webm。
     */
    private String file;

    /**
     * Required
     * <p>
     * ID of the model to use. Only whisper-1 is currently available.
     * <p>
     * 要使用的模型的ID。目前只有whisper-1可用。
     */
    private String model = "whisper-1";

    /**
     * The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
     * <p>
     * 输出的格式，在以下选项之一: json，text，srt，verbose_json或vtt。
     */
    private String response_format = ApiConstant.AUDIO_RESPONSE_JSON;

    /**
     * The sampling temperature, between 0 and 1.
     * Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
     * If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.
     * <p>
     * 采样温度在0 ~ 1之间。较高的值 (如0.8)
     * 将使输出更具随机性，而较低的值 (如0.2) 将使其更加集中和确定性。
     * 如果设置为0，模型将使用对数概率自动升高温度，直到达到某些阈值为止。
     */
    private float temperature = 0;

}
